/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.server.DTO;

import java.io.Serializable;

/**
 *
 * @author QuangKhai
 */
public class RowDTO implements Serializable{
    private String _columnName;
    private String _dataType;
    private boolean _allowNulls;
    private boolean _primaryKey;

    /**
     * @return the _columnName
     */
    public String getColumnName() {
        return _columnName;
    }

    /**
     * @param columnName the _columnName to set
     */
    public void setColumnName(String columnName) {
        this._columnName = columnName;
    }

    /**
     * @return the _dataType
     */
    public String getDataType() {
        return _dataType;
    }

    /**
     * @param dataType the _dataType to set
     */
    public void setDataType(String dataType) {
        this._dataType = dataType;
    }

    /**
     * @return the _allowNulls
     */
    public boolean isAllowNulls() {
        return _allowNulls;
    }

    /**
     * @param allowNulls the _allowNulls to set
     */
    public void setAllowNulls(boolean allowNulls) {
        this._allowNulls = allowNulls;
    }

    /**
     * @return the _primaryKey
     */
    public boolean isPrimaryKey() {
        return _primaryKey;
    }

    /**
     * @param primaryKey the _primaryKey to set
     */
    public void setPrimaryKey(boolean primaryKey) {
        this._primaryKey = primaryKey;
    }
        
    public RowDTO(){
        _columnName = "";
        _dataType = "";
        _allowNulls = false;
        _primaryKey = false;
    }
}
